<template>
  <div class="header">
    <div class="biz-bg">
      <img src="../../assets/images/201912201645278522.jpg" alt="none">
    </div>
    <div class="biz-header"></div>

    <div class="biz-top flex padding">
      <div class="biz-left flex-sub">
        <div class="title padding-bottom-xs">乡村基(高升桥店)</div>
        <div class="flex align-center padding-bottom-xs">
          <div class="tag">饿了么转送</div>
          <div class="text-999 padding-left-xs">越30分钟.月售2158.可自取</div>
        </div>
        <div class="notice padding-bottom-xs elip">公告：我们承诺：【只做品质外卖】阿斯顿发生</div>
        <div class="flex padding-bottom-xs">
          <span class="text-price">4</span>
          <span class="">满30可用</span>
          <span class="">已领</span>
        </div>
      </div>
      <div class="biz-right">
        <img class="logo" src="../../assets/images/1.png" alt="none"/>
      </div>
    </div>
  </div>
</template>

<script type="es6">
export default {
  inject: ['reload'], /**reload(callback);对应provide中的数组值*/
  name: "ElemHeader",
  data() {
    return {}
  },
  mounted() {

  },
  methods: {}
}
</script>

<style lang="scss" scoped>
$--main: #1989fa;
.header {
  padding: 15px;
  height: 200px;
  overflow: hidden;
  width: 100vw;
  background: #FFFFFF;
  position: relative;
  .biz-bg {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;

    img {
      width: 100%;
      object-fit: cover;
    }
  }
}
.biz-header{
  height: 50px;
}

.biz-top {
  width: 100%;
  position: relative;
  z-index: 99;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 0 3px #e5e5e5;
  font-size: 12px;

  .tag {
    color: $--main;
    padding: 2px 5px;
    background: rgba(25, 137, 250, .1);
  }

  .biz-left {
    overflow: hidden;

    .title {
      font-size: 18px;
      font-weight: bolder;
    }

    .notice {
      width: 220px;
      color: #999999;
    }
  }

  .biz-right {
    padding-left: 10px;

    .logo {
      width: 50px;
      height: 50px;
      border-radius: 5px;
    }
  }

}

.biz-cont {
  margin-top: 10px;

  .biz-tab {
    position: relative;

    .line {
      display: block;
      width: 30px;
      height: 3px;
      border-radius: 3px;
      background: $--main;
      left: 1px;
      bottom: 0;
      position: absolute;
      transition: left .5s;

      &.line-left1 {
        left: 71px;
      }

      &.line-left2 {
        left: 141px;
      }
    }

    .tab-item {
      height: 32px;
      line-height: 32px;
      width: 70px;
      font-size: 16px;
      color: black;
      transition: all .1s;

      &.active {
        font-weight: bolder;
      }
    }
  }
}
</style>